<template>
  <div>
    <mu-dialog :open="show" title="">
      <span class="t2">{{familyPerson.realname}}</span> 尚未进行身份认证，请先完成身份认证。
      <mu-flat-button slot="actions" @click="clickHandle" label="我知道了"/>
      <mu-flat-button slot="actions" @click="confirmHandle" primary label="去认证"/>
    </mu-dialog>
  </div>
</template>

<script>
  // import {commonAjax, RESTFUL_API} from '@/api/api'
  export default {
    data () {
      return {
        form: {
          confirmType: '1',
          mobile: '',
          cardnum: '',
          receiveCode: ''
        },
        vcodeLabel: '获取验证码',
        vcodeDisabled: false
      }
    },
    props: ['familyPerson', 'person', 'show'],
    mounted () {
    },
    methods: {
      clickHandle () {
        this.$emit('update:show', false)
      },
      confirmHandle () {
        sessionStorage.editFamily = JSON.stringify(this.familyPerson)
        this.$router.replace({
          path: '/setting/bind-visitcard',
          query: {
            redirect: this.$route.path
          }
        })
      }
    }
  }
</script>

